package top.dugou.dugou_article_gateway.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class FallbackController {

    @GetMapping(value = "/fallback")
    @ResponseBody
    public Map<String,Object> fallback(){
        Map<String,Object> result = new HashMap<String, Object>();
        result.put("statusCode",100);
        result.put("message","服务暂时不可用");
        return result;
    }
}
